package com.example.design.创建型设计模式.抽象工厂模式;

// AMD 电脑工厂类
public class AMDComputerFactory implements ComputerFactory {
    @Override
    public CPU createCPU() {
        return new AMDCPU();
    }

    @Override
    public Memory createMemory() {
        return new CorsairMemory();
    }

    @Override
    public HardDisk createHardDisk() {
        return new SeagateHardDisk();
    }
}
